package com.chengxiaoxiao.ai_demo.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 会话信息
 *
 * @Description:
 * @Author Cheng Xiaoxiao
 * @Date: 2025/3/12 15:37
 */
@Data
@Accessors(chain = true)
@Schema(description = "会话信息")
public class ConversationInfo implements Serializable {
    @Schema(description = "会话ID")
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 标题
     */
    @Schema(description = "会话标题")
    private String title;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 修改时间
     */
    @Schema(description = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
